Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring code in src/flags.js #478

Closed
wants to merge 4 commits into from

Conversation

dominicteh1
Copy link

Description

Refactored the function Flags.validate to reduce its Cognitive Complexity from 18 to the 15 allowed.

Resolves #435

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10704435580

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.003%) to 82.674%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 83.72%
src/flags.js 1 78.17%
Totals Coverage Status
Change from base Build 10607818019: 0.003%
Covered Lines: 22323
Relevant Lines: 25582

💛 - Coveralls

@dominicteh1
Copy link
Author

Closing as this issue actually replicates #334. Did not notice this earlier.

@dominicteh1 dominicteh1 closed this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring code in src/flags.js
2 participants